package com.jusyl.cristo.auth.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.mybatis.spring.annotation.MapperScan;

import com.jusyl.cristo.auth.model.AuthPermission;
import com.jusyl.cristo.auth.model.AuthRole;
import com.jusyl.cristo.auth.model.AuthRolePermission;
import com.jusyl.cristo.auth.model.AuthUser;
import com.jusyl.cristo.auth.model.AuthUserRole;

@MapperScan
public interface AuthOperationMapper {
	
	
	public int insertUser(AuthUser user);
	
	public List<AuthUser> getUsers();
	
	public AuthUser getUserByName(@Param("username") String username);
	
	public int insertRole(AuthRole role);
	
	public List<AuthRole> getRoles();
	
	public void insertPermission(AuthPermission permission);
	public void insertUserRole(AuthUserRole ur);
	public void insertRolePermission(AuthRolePermission rp);
}
